clear all
set more off
	
global dir = "C:\Users\mrueda\Documents\Emory\Papers\Networks_persistance\do_files\do_files_APSA21\post_JOP\Replication_BJPS\"	

cd "$dir"

use "Data\donor_level_persist_rep.dta",clear

keep if rank==1&family==0
	
	replace b5=. if b2!=0
	
	*Model 1
	foreach x in donate_15any b5{
	
		*Regressions
		quietly: reg `x' contract sanc_before ilegal p_prop elec_exp pol_exp_d center rank_don_alt_all lcont_donor_102 contraloria above_lim i.muni_code, vce(cluster muni_code)
		sensemakr `x' contract rank_don_alt_all lcont_donor_102 contraloria above_lim i.muni_code if e(sample), treat(contract) benchmark(lcont_donor_102) 

			
	}	

	

